Inventory
The mass balance equations around a tank, where there are n input flows and o output flows:
The component mass balance equations for a balance around a node are as follows for all components i, where there are n input flows and o output flows:
A state balance for each of each flow j, input, and output is generated and takes this form:
An additional state balance for each tank is generated for the final state of the inventory, which takes the following form:
Where:
Inputj \= mass flow of jth input
Outputj \= mass flow of jth output
xj,i \= fraction of component i in jth input or output
xF,i \= fraction of component i in final inventory
xI,i \= fraction of component i in initial inventory
InventoryF \= final inventory
InventoryI \= initial inventory
N = number of components